/**
 * Copyright (C), 2015-2020, XXX有限公司
 * FileName: A
 * Author:   ZX
 * Date:     2020/7/6 22:01
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package org.example.service;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author ZX
 * @create 2020/7/6
 * @since 1.0.0
 */
@Component
public class A implements InitializingBean {
    @Autowired
    private B b;

    public A() {
        System.out.println("A created");
    }

    @PostConstruct
    public void init() {
        System.out.println("pre A");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("after anno pre A");
    }
}